// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.common;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class StringUtils {
  public static String hex8(int value) {
    return org.apache.commons.lang.StringUtils.leftPad(Integer.toHexString(value & 0xFF), 2, '0');
  }

  public static String hex16(int value) {
    return org.apache.commons.lang.StringUtils.leftPad(Integer.toHexString(value & 0xFFFF), 4, '0');
  }
}
